home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 30 / Amiga Format AFCD30 (Sep 1998, Issue 114).iso / -screenplay- / hd_installers / bartmutants / install-game < prev    next >
Text File  |  1998-06-29  |  2KB  |  75 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #readme "bart")            ; %shd.readme
  4. (set #rip "abaddon")
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch)")
  23.  
  24. (set @default-dest
  25. (askdir
  26.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  27.     (help @askdir-help)
  28.     (default @default-dest)
  29.     (disk)
  30. )
  31. )
  32. (set #dest (tackon @default-dest @app-name))
  33.  
  34. (set #CI_drive ("DF%ld:" #CI_unit))
  35.  
  36. (makedir #dest
  37.     (help @makedir-help)
  38.     (infos)
  39. )
  40.  
  41. ;----------------------------
  42.  
  43. (copyfiles
  44.   (help @copyfiles-help)
  45.   (source ("HD.inf"))
  46.   (newname ("%sHD.info" @app-name ))
  47.   (dest #dest)
  48. )
  49.  
  50. (copyfiles
  51.   (help @copyfiles-help)
  52.   (source ("HD" @app-name ))
  53.   (newname ("%sHD" @app-name ))
  54.   (dest #dest)
  55. )
  56. (copyfiles
  57.   (help @copyfiles-help)
  58.   (source ("%shd.readme" #readme))
  59.   (dest #dest)
  60.   (infos)
  61. )
  62. (makeassign #rip #dest)
  63.  
  64.     (message ("\nPlease insert %s disk 1 into DF0:\n\nReady to create image 1?\n\nThe screen will go blank" @app-name))
  65.     (if
  66.         (= 0 (run ("ripbart nocaches QUIET")))
  67.         ("")
  68.         (abort "\"jst\" must be in your PATH !")
  69.     )
  70.  
  71. (makeassign    #rip)
  72.  
  73. (exit)
  74.  
  75.